package com.ali.common;

import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.Getter;

@Getter
public enum OrderStatusEnum {
    UNPAID(1, "未支付"),
    PAID(2, "已支付");

    //存储到数据库中
    @EnumValue
    private final Integer status;
    private final String statusName;

    OrderStatusEnum(Integer status, String statusName) {
        this.status = status;
        this.statusName = statusName;
    }
}